package com.atguigu.gulimall.product.service;

import com.atguigu.gulimall.product.vo.AttrGroupRelationVo;
import com.atguigu.gulimall.product.vo.AttrRespVo;
import com.atguigu.gulimall.product.vo.AttrValueWithSkuIdVo;
import com.atguigu.gulimall.product.vo.AttrVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.AttrEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author zhouh
 * @email zh69144@aliyun.com
 * @date 2022-02-03 16:18:42
 */
public interface AttrService extends IService<AttrEntity> {


    void save(AttrVo attr);

    PageUtils queryPage(Map<String, Object> params, String attrType, Long catelogId);

    AttrRespVo getAttrInfo(Long attrId);

    List<AttrEntity> relation(long attrgroupId);

    PageUtils noattr(Map<String, Object> params, long attrgroupId);

    void deleteRelation(AttrGroupRelationVo[] vos);

    List<AttrEntity> getRelationAttr(Long attrGroupId);

    List<Long> selectSearchAttrIds(List<Long> attrIds);
}

